﻿using CPPEI.ETL.DataServiceInterface;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.ETL.Domain.DataVerification
{
    public static class PlugInManager
    {
        public static IDataVerification Create(string assemblyName, string typeName)
        {
            Assembly assembly = Assembly.Load(assemblyName);
            Type type = assembly.GetType(typeName);

            return (IDataVerification)assembly.CreateInstance(typeName);
        }
    }
}
